<?php

namespace app\api\controller\admin;

use app\common\controller\Api;
use app\api\service\admin\TargetService;

class Target extends Api
{
    protected $noNeedLogin = [];
    protected $noNeedRight = [];
    

    

    /**
     * 查看
     */
    public function index()
    {
        $data = $this->request->post();
        $res = TargetService::index($data);
        return json($res);
    }

    /**
     * 保存
     */
    public function save()
    {
        $data = $this->request->post();
        $res = TargetService::save($data);
        return json($res);
    }

    /**
     * 详情
     */
    public function detail()
    {
        $data = $this->request->post();
        $res = TargetService::detail($data);
        return json($res);
    }

    /**
     * 删除
     */
    public function del()
    {
        $data = $this->request->post();
        $res = TargetService::del($data);
        return json($res);
    }
    
}